package Code.ExtendDemo.demo2;

public class Student extends Person{

    String school;
    public Student(){
        //子类构造方法中隐藏的super()去访问父类的无参构造
        this(null,0,"湖北科技职业学院"); //调用本类其他构造方法
        //细节：不会再去添加super(),因为其他构造方法里面有
        System.out.println("子类的无参构造");
    }
    public Student(String name, int age ,String school) {
        super(name, age);
        this.school = school;
    }


}
